import Types from '../../action/types.js';


const defaultState = {

};
export default function onAction(state = defaultState, action) {
  switch (action.type) {
    case Types.HOME_CLASS_INTERACTION_LOAD_SUCCESS:
      return {
        ...state,
        classInteraction: action.classInteraction,
      };
      break;
    case Types.HOME_CLASS_INTERACTION_LOAD_FAIL:
      return {
        ...state,
        error: action.error
      };
      break;
    default:
      return state
  }
}
